console.log(__filename);
console.log(__dirname);
console.log('--------------');

console.time('时间：')

const fs=require('fs');
const output=fs.createWriteStream('./stdout.log');
const errorOutput=fs.createWriteStream('./stderr.log');
// 自定义记录器
const logger=new console.Console({
    stdout:output,
    stderr:errorOutput
});

const count =5;
logger.log('count:%d',count);
logger.error('count:%d',count+1)

console.timeEnd('时间：')

console.log('---------------')
